package com.tanjun.publicservice.web.exceptions;

import com.tanjun.common.exception.ErrCode;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum FileErrCode implements ErrCode {
    FILE_SIZE_ERR("F0001", "文件大小超过限制"),
    FILE_SUFFIX_ERR("F0002", "文件类型错误"),
    FILE_ERR("F0003", "文件已损坏"),

    FILE_SAVE("F0004", "文件保存失败"),
    ;

    private String code;
    private String message;

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
